namespace device
{
	public class DeviceUtility
	{
		public static double TemperatureCalculate(byte ch1, byte ch2)
		{
			if ((ch1 & 0x40) != 0)
			{
				ch1 &= 0x3F;
				ch2 |= 0x80;
			}
			return (double)(ch1 * 256 + ch2) / 100.0;
		}
	}
}
